package com.example.s03_mybatis.mapper;

import com.example.s03_mybatis.pojo.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper
{
    List<User> getAll();

    User getOne(Long id);

    void insert(User user);

    void update(User user);

    void delete(Long id);



    // @Insert
    // @Update
    // @Select

    @Delete("delete from users where id=#{id}")
    void delete2(Long id);
}
